package com.company.gas.mapper;

import com.company.gas.pojo.SystemUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SystemUserMapper {
    List<SystemUser> querySystemUserList();

    SystemUser querySystemUserByID(@Param(value = "userId") String userId);

    int addSystemUser(@Param(value = "userId") String userId, @Param(value = "password") String password,
                      @Param(value = "privilege") String privilege, @Param(value = "flag") Boolean flag,
                      @Param(value = "createBy") String createBy, @Param(value = "modifyBy") String modifyBy);

    int updateSystemUser(@Param(value = "userId") String userId, @Param(value = "password") String password,
                         @Param(value = "privilege") String privilege, @Param(value = "modifyBy") String modifyBy);

    int deleteSystemUserByID(@Param(value = "userId") String userId);

}
